package com.myshiro.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.myshiro.dao.SysRightMapper;
import com.myshiro.dao.SysRoleMapper;
import com.myshiro.pojo.SysRight;
import com.myshiro.pojo.SysRole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysRightServiceImpl extends ServiceImpl<SysRightMapper, SysRight> implements SysRightService {
    @Resource
    SysRightMapper rightMapper;

    @Override
    public List<SysRight> getSysRightByUserRoleId(Long roleId) {
        return rightMapper.getSysRightByUserRoleId(roleId);
    }
}
